From ab6ebc5c01a11835cdfcb9468428ba89cd5081af Mon Sep 17 00:00:00 2001 From: Daniel Golle Date: Wed, 9 Jul 2025 03:39:53 +0100 Subject: [PATCH] unifdef: fix build with GCC 15 Using GCC compiler on the host breaks the build due to 'constexpr' being a reserved keyword in C22. Build expecting the sources to be in GNU17 standard fixes that. Signed-off-by: Daniel Golle --- devel/unifdef/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/devel/unifdef/Makefile b/devel/unifdef/Makefile index a0eceef35f..2dc499d15b 100644 --- a/devel/unifdef/Makefile +++ b/devel/unifdef/Makefile @@ -17,6 +17,9 @@ HOST_BUILD_PARALLEL:=1 include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/host-build.mk +HOST_CFLAGS += -std=gnu17 +TARGET_CFLAGS += -std=gnu17 + define Package/unifdef SECTION:=devel CATEGORY:=Development -- 2.30.2